<?php

namespace App\Http\Requests\projectManager;

use App\Http\Requests\BaseRequest;
use Illuminate\Foundation\Http\FormRequest;

class addItemRequest extends BaseRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return parent::authorize();
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            "local_path" => "required|max:200",
            "project_name" =>"required|max:20",
            "IDE_Name" => "required|max:20",
            "IDE_Version" => "required|max:20",
            "IDE_Path" => "required|max:200",
            "remark" => "max:30"
        ];
    }
}
